﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace 小区物业管理系统
{
    public partial class 我的详细信息 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
        {

            小区物业管理系统DataContext db = new 小区物业管理系统DataContext();
            var results = from r in db.用户信息
                          where System.Data.Linq.SqlClient.SqlMethods.Like(r.用户姓名, $"%{TextBox1.Text}%")
                          select r;
            GridView1.DataSource = results;
            GridView1.DataBind();
        }
    }
}